package cn.tm.liu.mode.builder.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 11.28
 */
public class MacBuilder extends ComputerBuilder {

    private Computer computer = new MacBook();

    @Override
    void buildBoard(String board) {
        computer.setBoard(board);
    }

    @Override
    void buildDisplay(String display) {
        computer.setDisplay(display);
    }

    @Override
    void buildOs() {
        computer.setOs();
    }

    @Override
    public Computer build() {
        return computer;
    }
}
